package com.tc.validator;

import com.alibaba.fastjson.JSON;
import com.baidu.unbiz.fluentvalidator.ValidatorContext;
import com.baidu.unbiz.fluentvalidator.ValidatorHandler;

public class CmapCustomerMerchantBasicInfoValidator  extends ValidatorHandler<CmapCustomerMerchantBasicInfoVO> implements com.baidu.unbiz.fluentvalidator.Validator<CmapCustomerMerchantBasicInfoVO> {
    @Override
    public boolean validate(ValidatorContext context, CmapCustomerMerchantBasicInfoVO cmapCustomerMerchantBasicInfoVO) {
        System.out.println("-=-=-=-");
        System.out.println(JSON.toJSONString(cmapCustomerMerchantBasicInfoVO));

        context.addErrorMsg("测试 错误状况");
        context.addErrorMsg("测试 sssss");
        return false;
    }
}
